home *** CD-ROM | disk | FTP | other *** search
- Path: news.ust.hk!ee_ckmaa
- From: ee_ckmaa@uxmail.ust.hk (Chan Ka Ming)
- Newsgroups: comp.lang.c
- Subject: help Visual C++
- Date: 10 Jan 1996 04:15:20 GMT
- Organization: The Hong Kong University of Science and Technology
- Message-ID: <4cvego$50c@news.ust.hk>
- NNTP-Posting-Host: ustsu26.ust.hk
- X-Newsreader: TIN [version 1.2 PL2]
-
- I have tried the following code in Visual C++. I always got the run-time error
- "floating point support not loaded" . What's that? The code seems to be correct
- since it runs correctly on UNIX. The file "some_file" contains some floating
- data. Pls help.
-
-
-
-
- #include <stdio.h>
- #include <stdlib.h>
-
- void main()
- {
- float m[8];
- FILE *fp;
- int i;
-
- if ((fp = fopen("some_file", "r")) == NULL) {
- printf("File not found.");
- exit(1);
- }
-
- for(i = 0; i < 8; i++) {
- fscanf(fp, "%f", &m[i]);
- }
-
- fclose(fp);
- }
-
- --
-
- If an ideal can be reached easily it no longer is an ideal.
- ka ming
-
-